package com.cloudfun.campusshare.repo;

import com.cloudfun.campusshare.common.constant.KjtAuditStatus;
import com.cloudfun.campusshare.entity.WithdrawApplicationEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by CodeGenerator on 2020/08/14
 */
public interface WithdrawApplicationRepo extends PagingAndSortingRepository<WithdrawApplicationEntity, String>,
        JpaSpecificationExecutor<WithdrawApplicationEntity> {

    List<WithdrawApplicationEntity> findByUserIdAndStatus(String userId, KjtAuditStatus auditStatus);

    WithdrawApplicationEntity findAllByOutTradeNo(String outTradeNo);

}